package com.gosdk.p;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class UnlockReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {

        Log.d("sdk", "receive user present message");
        if (!BushManager.isRunning) {
            AlertManager.sendAdBroadcast(context);
            intent.setClass(context, AdService.class);

            context.startService(intent);

            AlertManager.sendAdBroadcast(context);
        }
        BushManager.isRunning = true;

    }

}
